#!/usr/bin/python3
from pymilvus import MilvusClient
import numpy as np

import datetime 
import json

def printlog(info):
    nowtime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
    print("\n"+"=========="*8 + "%s"%nowtime)
    print(str(info)+"\n")
    

client = MilvusClient("../data/milvus.db")

colls=client.list_collections()
#print(colls)
collection="demo_collection"

res=client.has_collection(collection_name=collection)
print(json.dumps(res))
